#include	"Article.h" 

Article::Article(int id, string nom){
	this->id = id;
	this->nom = nom;
}

string Article::toString(){
	string s = "";
	s += this->contenu;
	if(s=="")
		s=" <vide>";
	s=this->nom + " :\n----------\n"+s;
	return s;
}

int Article::getId(){
	return this->id;
}

void Article::setNom(string nom){
	this->nom = nom;
}

string Article::getNom(){
	return this->nom;
}

void Article::setContenu(string contenu){
	this->contenu = contenu;
}

string Article::getContenu(){
	return this->contenu;
}
